package shiyan;

/**
 * Created by mc on 2016/7/28.
 */
class Cuowu{
    int chu(int a,int b)throws Exception
    {
        return a/b;
    }
}
public class throws1
{
    public static void main(String[] arges)
    {
        Cuowu a = new Cuowu();
        try {
            int x = a.chu(4, 0);

            System.out.println("x=" + x);
        }

        catch(Exception e) {
            System.out.println("/0");
        }
    }
}